//
//  CountryPhone.m
//  QingCheng
//
//  Created by FYWCQ on 2017/10/31.
//  Copyright © 2017年 馍馍帝👿. All rights reserved.
//

#import "CountryPhone.h"

@implementation CountryPhone


-(void)encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeObject:self.countryNo forKey:@"countryNo"];
    
    [aCoder encodeObject:self.name forKey:@"name"];
    
}

- (instancetype)initWithCoder:(NSCoder *)coder
{
    
    self = [super init];
    
    if (self) {
        
        self.countryNo = [coder decodeObjectForKey:@"countryNo"];
        
        self.name = [coder decodeObjectForKey:@"name"];
        
    }
    
    return self;
    
}

-(NSString *)description
{
    
    return [NSString stringWithFormat:@"%@ %@",self.name,self.countryNo];
    
}


@end
